package Lesson;

import HomeWork.Coder;

public class TestCook {
    public static void main(String[] args) {
        Cook cook = new Cook();

        System.out.println(cook.name);
        System.out.println(cook.age);
        System.out.println(cook.year);

        cook.age = 27;
        cook.name = "张三";
        cook.year = 20;

        System.out.println(cook.name);
        System.out.println(cook.age);
        System.out.println(cook.year);

        cook.cook();
    }
}
